{layout name="admin:layout" /}
<div class="tipbox tipbox-message">应用管理员是当前应用注册的会员。</div>
<form id="form" action="{:url('system/admin.miniapp/editAuthorizar')}">
<input type="hidden" name="id" value="{$info.id}" />
<table class="formtable">
    <tr><th>应用名称:</th><td>{$info.appname}</td></tr>
    <tr>
        <th>应用管理员:</th>
        <td class="button-group">
            <input readonly="readonly" id="uid" class="readonly input fn-left" type="text" name="uid" value="{$info.uid}" />
            <button type="button" class="settpl button "><i class="iconfont icon-lianjie"></i>选择用户</button> 
        </td>
        {if $miniapp['types'] != 'mp' && $miniapp['types'] != 'app'}
        <tr>
            <th>小程序状态颜色:</th>
            <td><input style="background-color:{$info.navbar_color};" readonly="readonly" datatype="*" class="readonly w280 input ui-color" type="text" name="navbar_color" value="{$info.navbar_color}" /></td>
        </tr>
        <tr>
            <th>小程序文字样式:</th>
            <td>
                <select datatype="*" name="navbar_style" class="select w280">
                    <option value="#ffffff"{if $info.navbar_style=='#ffffff'} selected{/if}>白色</option>
                    <option value="#000000"{if $info.navbar_style=='#000000'} selected{/if}>黑色</option>
                </select>
            </td>
        </tr>
        {/if}
        <tr>
            <th></th>
            <td>
                <input type="submit" value="确定" class="button button-blue submit" />
                <input type="reset" value="重置" class="button button-blank" />
            </td>
        </tr>
    </tr>
</form>
</table>
{if !empty($user)}
<div class="titlebar"><i class="iconfont icon-weixin"></i>管理员信息</div>
<table class="pure-table">
    <tr><td class="w100">头像:</td><td><img src="{$user.face}" class="w80"></td></tr>  
    <tr><td>昵称:</td><td>{$user.nickname}</td></tr>  
    <tr><td>登录IP:</td><td>{$user.login_ip}</td></tr>  
    <tr><td>登录时间:</td><td>{$user->login_time|date='Y-m-d H:i'}</td></tr>  
    <tr><td>创建时间:</td><td>{$user->create_time|date='Y-m-d H:i'}</td></tr> 
    <tr><td>状态:</td><td>{if $user.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</td></tr> 
</table>
{/if}
<script type="text/javascript">
Do('base','layer','form','date','color',function () {
    $('#form').isForm();
    $(".settpl").win({'url':"{:url('system/admin.miniapp/selectWechatUser',['id' => $info.id,'input'=>'uid'])}"});
});
</script>